﻿@model IdentitySample.Models.IndexViewModel
@{
    ViewBag.Title = "帐号管理";
}

<h2>@ViewBag.Title.</h2>
<p class="text-success">@ViewBag.StatusMessage</p>
<div class="row">
    <div class="col-md-8">
        <p>
            @if (Model.HasPassword)
            {
                @Html.ActionLink("更改密码", "ChangePassword")
            }
            else
            {
                @Html.ActionLink("Pick a password", "SetPassword")
            }
        </p>
        <p>
            电话号码: @(Model.PhoneNumber ?? "无") [
            @if (Model.PhoneNumber != null)
            {
                @Html.ActionLink("更改", "AddPhoneNumber")
                @: &nbsp;|&nbsp;
                @Html.ActionLink("删除", "RemovePhoneNumber")
            }
            else
            {
                @Html.ActionLink("添加", "AddPhoneNumber")
            }
            ]
        </p>
    </div>
</div>
